<template>
    <div id="file"> 
        <div class="nav_module">
            <p style="font-size:22px; text-align:center; font-weight:bold; margin-top:20px;">文件管理</p>
            <p style="text-align:center;font-size:12px;">Customer service</p><br/><hr/>
            <el-menu class="file_nav" @open="handleOpen" @close="handleClose">
                <el-submenu index="1">
                    <template slot="title">
                        <span slot="title"> 客户文件 </span>
                    </template>
                    <el-menu-item-group class="search-group">
                        <router-link to="/clientFile" class="clientFile" name="/clientFile" >
                            <el-menu-item index="1-1"> 客户文件 </el-menu-item>
                        </router-link>
                    </el-menu-item-group>
                </el-submenu>
                <el-submenu index="2">
                    <template slot="title">
                        <span slot="title"> 内部文件 </span>
                    </template>
                    <el-menu-item-group class="msg-group"> 
                        <router-link to="/interiorFile" class="interiorFile" name="/interiorFile" >
                            <el-menu-item index="2-1">内部文件</el-menu-item>
                        </router-link>
                    </el-menu-item-group>
                </el-submenu>
            </el-menu>
        </div>
        <el-main class="customer-main">
            <router-view />
        </el-main>
    </div>
</template>
<script>

export default ({
    name:"FilePage",
    data(){
        return{

        }
    },
    methods:{
        handleOpen(key, keyPath) {
            console.log(key, keyPath);
        },
        handleClose(key, keyPath) {
            console.log(key, keyPath);
        },
    },
    mounted:function(){
        
    }
})
</script>
<style scoped>
*{
    margin: 0px;
    padding: 0px;
}
.nav_module{
    display: inline-block;
    width: 200px;
    height: 610px;
    position: relative;
    top: 5px;
    left: 5px;
    border: 2px solid rgb(212, 212, 212);
    border-bottom: none;
    border-right: 5px solid  rgb(212, 212, 212);
    border-radius: 5px;
}
.el-submenu .el-menu-item {
    height: 50px;
    line-height: 50px;
    padding-left: 45px;
    min-width: 190px;
    background-color:rgb(247 243 243);
    border: 1px solid rgb(228, 228, 228);
    border-radius: 5px;
}
.el-submenu .el-menu-item:hover{
  position: relative;
  top: 1px;
  color: rgb(255, 255, 255);
  background-color: rgb(175, 110, 110);
}
/deep/.el-submenu__title i{
    display: none;
}

/deep/.el-submenu__title{
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid rgb(204, 204, 204);
    background-color: rgb(231, 229, 229);
}
/deep/.el-submenu__title:hover{
    background-color: rgb(161, 34, 34);
    color: white;
}
.search-group{
    position: relative;
    height: 60px;
    line-height: 60px;
    background-color: rgb(204, 206, 204);
}
.clientFile{
    position: relative;
    top: -10px;
    text-decoration: none;
    text-align: right;
    /* font-weight: bold; */
}
.msg-group{
    position: relative;
    background-color: rgb(204, 206, 204);
    height: 60px;
    line-height: 275px;
}
.interiorFile{
    position: relative;
    top: -10px;
    text-decoration: none;
    text-align: right;
    /* font-weight: bold; */
}
.holdingProduct{
    position: relative;
    top: -6px;
    text-decoration: none;
    text-align: right;
    /* font-weight: bold; */
}
.transActionRecord{
    position: relative;
    top: -2px;
    text-decoration: none;
    text-align: right;
    /* font-weight: bold; */
}
.relatePerson{
    position: relative;
    top: 2px;
    text-decoration: none;
    text-align: right;
    /* font-weight: bold; */
}
.customerMsgSupple{
    position: relative;
    top: 6px;
    text-decoration: none;
    text-align: right;
    /* font-weight: bold; */

}
.ship-group{
    position: relative;
    background-color: rgb(204, 206, 204);
    height: 60px;
    line-height: 60px;
}
.customerRelationship{
    position: relative;
    top: -10px;
    text-decoration: none;
    text-align: right;
    /* font-weight: bold; */
}
.customer-main{
    width: 980px;
    height: 610px;
    position: absolute;
    top: 5px;
    left: 230px;
    border: 1px solid rgb(230, 228, 228);
    border-top: 5px solid rgb(207, 207, 207);
    border-radius: 5px;
}
</style>

